package com.hqd.ch03.v50.utils;

public abstract class PackageUtils {
    public static String getCurrentVersion() {
        String packageName = PackageUtils.class.getPackage().getName();
        String[] packageParts = packageName.split("\\.");
        return packageParts[3];
    }

    public static String getCurrentResourcePath(String path) {
        String currentVersion = getCurrentVersion();
        return currentVersion + "/" + path;
    }
}
